package com.ymatou.iapi.quickturnover.service;

import org.json.JSONObject;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*获取买手订单取消率信息接口Call
*FreeMaker Template自动生成代码
*/
public class GetCancelOrdersRateReqCall extends YmatouBaseCall{
	private static String opurl ="/api/GetCancelOrdersRate";
	
	public GetCancelOrdersRateReqCall() {
		super(EnvSetup.getSystemUrl("quickturnover_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	/**
	 * 获取Data
	 * 
	 * @return
	 */
	public JSONObject getData() {
		JSONObject Data = null;
		try {
			Data = new JSONObject(getReturnData()).getJSONObject("data");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return Data;
	}
	
	
}